<?php
namespace Mobile\Controller;
use Think\Controller;
use Common\User;

class PublicController extends Controller {
	
	/*
     * 初始化操作
     */
    public function _initialize() {
		//检验自动登录
		$user = new User();
		$user->autoLogin();

	}
	
	/*
	*加载模版函数
	*/
	public function view(){
		//页面标题
		$action_title = C("action_title");
		
		$title = empty($action_title[CONTROLLER_NAME][ACTION_NAME])?C('VIEW_TITLE'):$action_title[CONTROLLER_NAME][ACTION_NAME];
		
		
		$this->assign('title',$title);
		$this->assign('page_base',C('page_base')); 		
		$this->assign('page_keyword',C('Keywords')); 
		$this->assign('page_description',C('Description')); 
		
		//加载头部
		$this->display("Public/page_header");
		$this->display();
		$this->display("Public/page_footer");
	}
	
}